import http from '@/utils/request'

const apiBefore = 'web/notice'

export const clientDesired = {
  sendEmailApi: params => {
    return http.post(`${apiBefore}/email-process/send-mq`, params)
  },
  getBotTriggerReportApi: params => {
    return http.post(`${apiBefore}/teams/message/trend`, params)
  },
  getBotTriggerUserReportApi: params => {
    return http.get(`${apiBefore}/teams/message/user/LineChart`, { params })
  },
  // Get Bot Trigger report Data
  getTriggerReportDataApi: params => {
    return http.post(`${apiBefore}/teams/message/trend-table`, params)
  },
  getCheckListApi: (params) => {
    return http.post(`${apiBefore}/tenant/task/filterlist`, params)
  },
  getMessageInfoApi: params => {
    return http.get(`${apiBefore}/teams/message/` + params.id + `/info`, params)
  },
  postCreateJiraIssueApi: (params) => {
    return http.post(`web/data-jira-api/issue/createCommonIssue`, params)
  },
}
